package by.grsu.hd.reporting;

import by.grsu.hd.devices.MediaPlayer;

public class TextReportBuilder extends TrafficReportBuilder {

	String name,status;
	

	public TextReportBuilder() {
		super();
	}

	public TextReportBuilder(TrafficReportData data) {
		super(data);
	}

	public void setFile(String name, String status) {
		this.name = name;
		this.status = status;
	}

	

	public String buildReport() {
		return "Outgoing Traffic: " + getData().getOutgoingTraffic()+ " bytes;" + 
				" Incoming Traffic: "	+ getData().getIncomingTraffic() + " bytes. \n"	+ 
				"Now playing file is: " + name + "\n"+
				"Status: "+ status+ "\n";
	}
}
